package com.openbravo.bean;

import java.util.Date;

import e.odbo.data.bean.I_AutoGeneratorStringKey;
import e.odbo.data.bean.I_ModifiedLogBean;

public class ProductCode implements I_ModifiedLogBean<String> ,I_AutoGeneratorStringKey{
	
	private static final long serialVersionUID = -6459545043030848376L;

    private String id;
    private String productId;
    private String code;
    private Date lastModified;
   
	public ProductCode() {
	}

	public ProductCode(String productId) {
		this.productId = productId;
	}


	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getProductId() {
		return productId;
	}


	public void setProductId(String productId) {
		this.productId = productId;
	}


	public String getCode() {
		return code;
	}


	public void setCode(String code) {
		this.code = code;
	}


	@Override
	public String getKey() {
		return id;
	}

	@Override
	public Date getLastModified() {
		return lastModified;
	}


	@Override
	public void setLastModified(Date lastModified) {
		
		this.lastModified=lastModified;
	}

	@Override
	public void setKey(String key) {
		this.id=key;
	}

}
